﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Ch12.Models
{
    /// <summary>
    /// 业主
    /// </summary>
    [Table("Proprietor")]
    public class Proprietor : EntitySet
    {
        /// <summary>
        /// 业主姓名
        /// </summary>
        [Required]
        [MaxLength(64), DisplayName("业主")]
        public string Name { get; set; }
        /// <summary>
        /// 业主电话
        /// </summary>
        //[Required]
        [MaxLength(36), DisplayName("联系方式")]
        public string Phone { get; set; }
        /// <summary>
        /// 业主证件类型
        /// </summary>
        //[Required]
        [MaxLength(36), DisplayName("证件类型")]
        public string CredentialType { get; set; }
        /// <summary>
        /// 业主证件号码
        /// </summary>
        //[Required]
        [MaxLength(36), DisplayName("证件号码")]
        public string CredentialNumber { get; set; }
        /// <summary>
        /// 业主类型
        /// </summary>
        [MaxLength(36), DisplayName("业主类型")]
        public string ProprietorType { get; set; }
        /// <summary>
        /// 购房合同号
        /// </summary>
        [MaxLength(36), DisplayName("购房合同号")]
        public string PurchaseContractNumber { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(256), DisplayName("备注说明")]
        public string Remarks { get; set; }
        /// <summary>
        /// 身份证
        /// </summary>
        [MaxLength(36), DisplayName("身份证编号")]
        public string IdCardId { get; set; }
    }
}